function logException(where: string, error: any): void {
	console.error(where);
	console.error(error.stack);
}

function runtimeError(what: string): void {
	logException(what, new Error());
}

type Logger = any;
function getLogger(name: string, option?: any): any {
	return console;
}

function createCommonLogger(name: string): Logger {
	return getLogger(name, { console: true, dialyfile: true });
}

// function overideError(): void {
// 	const func = console.error;
// 	console.error = (...args: any[]): void => {
// 		func(args);
// 		ui.msgerror(args);
// 	};
// }
